﻿///<reference path="jquery-1.4.3.min.js" />
///<reference path="kooboo.js" />
///<reference path="kooboo.webcontrols.js" />


function __initDate(ui, defautValues,id) {
    kooboo.webcontrols[ui] = {
        val: function (value) {
            if (typeof value == 'undefined') {
                return $("#" + ui).val();
            } else {
                $("#" + ui).val(value);
            }
        },
        html: function (html) {
            this.val(html);
        },
        reset: function () {
            this.val(defautValues);
        },
        id: id
    };
}

$(function () {
    $('.ui-date').datepicker();
});